import {createStore,applyMiddleware} from "redux";
import { composeWithDevTools } from "redux-devtools-extension";
import {allReducer} from "./reducers";
import thunk from 'redux-thunk'

//使用redux调式工具并使用thunk中间件处理异步action任务
export default createStore(allReducer,composeWithDevTools(applyMiddleware(thunk)));